-- 万国觉醒
-- main.lua  



t['对话框']={0xf2f2f2, "0|0|0xf2f2f2,-21|-3|0xededed",90,123,652,178,746}
    t['对话框-王国']={0x594a30, "0|0|0x594a30,-5|5|0x008fbe",90,13,47,109,608}
    t['对话框-王国-激活']={0xf0e9df, "0|0|0xf0e9df,-5|5|0x008fbe",90,13,47,109,608}
    t['对话框-打开侧边']={0xfff2e6, "0|0|0xfff2e6,-1|-7|0xb2925e,-1|-11|0xfff2e6",90,12,3,51,56}
    t['对话框-打开侧边-发送']={0x006adf, "0|0|0x006adf,8|-14|0xe9fbff",90,1261,176,1330,567}


_adText = {
    "游戏工具人rok",
}

function ad()
    if d('对话框',true,1,3) then
        if d('对话框-王国',true) or d('对话框-王国-激活') then
        else
            d('对话框-打开侧边',true)
        end
        click(523,711,3)
        inputStr( _adText[rd(1,#_adText)] )
        delay(2)
        if d('对话框-打开侧边-发送',true,1,20) then
            return true
        end
    end
end


t['广告-收藏夹']={0xb46d12, "0|0|0xb46d12,10|5|0xffa700",90,466,-1,524,40}
    t['广告-收藏夹-全部点特殊']={0xffffff, "0|0|0xffffff,-234|1|0x098b08",90,188,101,569,186}
    t['广告-收藏夹-特殊激活']={0xffffff, "0|0|0xffffff,-58|2|0x088508",90,193,114,563,181}
        t['广告-收藏夹-特殊激活-无书签']={0xffffff, "0|0|0xffffff,113|4|0x066f9a,120|3|0xffffff",90,500,351,788,421}
	        t['广告-收藏夹-特殊激活-关闭']={0xd3d1ca, "0|0|0xd3d1ca,-11|-9|0xd7d6ce,-9|-2|0x9b9a8d",90,1110,65,1162,107}
	            t['广告-收藏夹-特殊激活-收藏自己']={0x995200, "0|0|0x995200,56|-3|0x1274ba,-62|-3|0x1075ba",90,160,79,1319,682}
	            t['广告-收藏夹-特殊激活-收藏自己-盟主']={0xd967f7, "0|0|0xd967f7,-63|0|0x1174ba,56|0|0x1274ba",90,71,55,1296,712}
	                t['广告-收藏夹-激活自己的收藏']={0x003658, "0|0|0x003658,-5|-130|0x0898d5",90,125,170,263,448}
	            t['广告-收藏夹-特殊激活-收藏完成']={0x007aff, "0|0|0x007aff,49|-5|0x007aff,14|18|0x007aff",90,1017,61,1310,635}
	            t['广告-收藏夹-特殊激活-确定']={0x1274ba, "0|0|0x1274ba,-59|-17|0x00ccfe,52|17|0x00b7f3",90,273,140,1039,608}
	   t['广告-收藏夹-特殊激活-有书签']={0x055987, "0|0|0x055987,13|-9|0x025788,14|8|0x005886,9|0|0x1587bf",90,854,190,910,261}
	    t['广告-收藏夹-世界频道']={0x008fbe, "0|0|0x008fbe,0|-6|0x7b705f,63|2|0xffffff",90,384,74,756,688}
	    t['广告-收藏夹-世界频道-确定发送']={0x0e75e5, "0|0|0x0e75e5,-20|-12|0xffffff,-201|-3|0xc5b499",90,382,275,936,549}

function ads_()
    d('游戏主界面-城内',true,2)
    if d('游戏主界面-野外',false,1,3) then
        if d('广告-收藏夹',true,1,2) then
            d('广告-收藏夹-全部点特殊',true,1,3)
            if d('广告-收藏夹-特殊激活') then
                if d("广告-收藏夹-特殊激活-有书签",true,1,2) then
                    if d('广告-收藏夹-世界频道',true,1,2)then
                        if d('广告-收藏夹-世界频道-确定发送',true,1,2)then
                            delay(30)
                            return true
                        end
                    end
                else
                    log('无书签')
                    d('广告-收藏夹-特殊激活-关闭',true,1,2)
                    click(663, 358,2)
                    d('广告-收藏夹-特殊激活-收藏自己',true,1,2)
                    d("广告-收藏夹-特殊激活-收藏自己-盟主",true,1,2)
                    d('广告-收藏夹-激活自己的收藏',true,1,2)
                    click(576, 251,5)
                    clearTxt()
                    input( _adText[rd(1,#_adText)] )
                    delay(5)
                    d("广告-收藏夹-特殊激活-收藏完成",true,1,2)
                    d("广告-收藏夹-特殊激活-确定",true,1,2)
                    return false;
                end
            end
        end
    end
end
















	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	